package com.tpp.scheduler.client;

import com.tpp.comm.client.AdminSchedulerClient;
import com.tpp.comm.vo.ItemSchedulerVo;
import com.tpp.scheduler.service.AdminSchedulerService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class AdminSchedulerClientImpl implements AdminSchedulerClient {

    @Resource
    private AdminSchedulerService adminSchedulerService;

    @Override
    public void addScheduler(ItemSchedulerVo itemSchedulerVo) {
        adminSchedulerService.addScheduler(itemSchedulerVo);
    }
}
